package com.huaguoguo.cyg.spider.processor.tl;

import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;

/**
 * 类说明： 爬取简单的请求，例如直接返回json，文本信息的<br/>
 * author:huaguoguo
 * Date: 2020/2/22
 * Time: 12:24
 */
public class SimpleHttpProcessor {

    /**
     * 获取服务器列表
     * @return
     */
    public static String getSrvlist(){
        HttpRequest httpRequest = HttpUtil.createGet("http://tl.changyou.com/events/paihang/srvlist.txt");
        HttpResponse response = httpRequest.execute();
        String body = response.body();
        return body;
    }
}
